package com.example.designpattenexample.visitor;

public class ConcreteVisitor implements Visitor {

    @Override
    public void visit(Element1 element1) {
        element1.operation();
    }

    @Override
    public void visit(Element2 element2) {
        element2.operation();
    }
}
